<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-userMsg-reply">
        <input type="hidden" th:value="${openid}" name="openid">
        <div class="form-group">
            <label class="col-sm-3 control-label" th:text="${'我想对'+nickname+'说:'}"></label>
            <div class="col-sm-9">
                <input  type="text" id="content" name="content" class="form-control" placeholder="请输入文本">
            </div>
        </div>
    </form>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript">
    var prefix = ctx + "wx/userMsg"
    $("#form-userMsg-reply").validate({
        rules:{
            content:{
                required:true,
            },
        },
        focusCleanup: true
    });

    function submitHandler(e) {
        if ($.validate.form()) {
            $.operate.save(prefix + "/toReply", $('#form-userMsg-reply').serialize());
        }
    }
</script>
</body>
</html>
